<html>
<body>
<div class="hoge" id='num'>
  <% for (;;) { %><span>
    alert('hoge3');
  </span><% } %>
  <span><% for (;true;) { %>
    alert('hoge4');
  <% } %></span>
</div>
</body>
</html>
